#ifndef DIALOGIMPORTER_H
#define DIALOGIMPORTER_H

#include <QDialog>
#include <QFile>
#include <QString>
#include <QStringList>
#include <QTextStream>
#include <QSqlQuery>
#include <QSqlTableModel>
#include <QModelIndex>
#include <QFileDialog>
#include <QMessageBox>

#include <pg.h>

namespace Ui {
class DialogImporter;
}

class DialogImporter : public QDialog
{
    Q_OBJECT
    
public:
    explicit DialogImporter(QWidget *parent = 0);
    ~DialogImporter();
    
private slots:
    void on_radioTypeTemp_clicked();

    void on_radioTypeExist_clicked();
    void majSoldes();

    void on_lineRecherche_textEdited(const QString &arg1);

    void on_tableConso_clicked(const QModelIndex &index);

    void on_buttonBox_accepted();

private:
    Ui::DialogImporter *ui;
    QSqlDatabase db;
    int idConso;
    QSqlTableModel *model;

};

#endif // DIALOGIMPORTER_H
